package com.oa.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 考勤表的pojo类
 *
 * @Author: 一拳超人
 * @Date: 2021/10/2 9:53
 */

@TableName("attendance")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Attendance implements Serializable {
    private static final long serialVersionUID = 1382655203184482213L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 上班时间
     */
    @TableField(updateStrategy = FieldStrategy.DEFAULT)
    private Date attendanceTime;
    /**
     * 下班时间
     */
    @TableField(updateStrategy = FieldStrategy.DEFAULT)
    private Date closeTime;
    /**
     * 加班时长
     */
    private String overtimeHours;
    /**
     * 工作时长
     */
    private String workTime;
    /**
     * 员工id
     */
    private Integer empId;
    /**
     * 考勤状态
     */
    private String attendanceStatus;
    /**
     * 员工打卡记录唯一编号
     */
    private String attendanceIndex;

    @TableField(exist = false)
    private String empName;
}
